package com.qilin.hammer;
import java.lang.reflect.*;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.regex.*;
import java.util.*;

public class ShowMethods {
	private final static String CLASS_NAME="ShowMethods";
	private final String name="ShowMethods";
	private int x=100;
	
	public static void print(String arg){
		System.out.println(arg);
		arg="tttt";
	}
	
	
	public static void main(String[] args){
			print(args[0]);
			print(args[0]);
			ShowMethods obj = new ShowMethods();
			ArrayList<String> arr= new ArrayList<String>();
			Calendar ca = Calendar.getInstance();
			ca.set(2012, 12, 21, 0, 0, 0);
			System.out.println(ca.getTimeInMillis());
			
			try{
				Class<?> c=Class.forName("com.qilin.hammer.util.FileFinder");//=obj.getClass();
				//Class<?> c=Class.forName("java.util.Calendar");
				Method[] methods=c.getMethods();
				Constructor<?>[] ctors=c.getConstructors();
				Field[] fields = c.getFields(); 
				for(Constructor<?> ctor:ctors)
					print(ctor.toString());
				for(Method method:methods)
					print(method.toString());
//				Field f = c.getDeclaredField("x");
//				int x = f.getInt(c.newInstance());
//				print(String.valueOf(x));
				String a = new String("中文".getBytes(),"GBK");
				System.out.println(a.getBytes());
				System.out.println("In gbk coding:"+a);
				System.out.println("In utf-8 coding:"+new String(a.getBytes("GBK")));
				System.out.println("中文".getBytes());
			}catch(Exception e){e.printStackTrace();}

			
	}
}
